FROM my_ubuntu:latest

ENV TZ=Asia/Shanghai

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ADD pom.xml /app/  
  
ADD src/ /app/src/  
  
WORKDIR /app/  

ADD target/ target/  
  
EXPOSE 8080

CMD ["java","-jar","target/fxapp-0.0.1-SNAPSHOT.jar"]